//
//  QuickScanCollectionView.h
//  FKGW
//
//  Created by song ce on 2017/2/18.
//  Copyright © 2017年 song ce. All rights reserved.
//

#import "BaseView.h"
#import "ScanCollectionCell.h"
typedef void(^noPicsBlock) ();
typedef void(^lastOnePhotoBlock) ();//删除的就剩一张的回调
typedef void(^updataDataSourceBlock) (NSMutableArray *dataSource);
typedef void(^loadMoreBlock) ();//加载更多图片回调
@interface QuickScanCollectionView : BaseView<UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
@property(nonatomic,strong)UICollectionView *myCollectionView;
@property(nonatomic,strong)NSMutableArray *dataSoure;//总数据源
@property(nonatomic,strong)NSMutableArray *dataArr;//从控制器传来的数据分页数据
@property(nonatomic,assign)BOOL isWriteToLocal;//是否已经开始加载图片并写入本地
@property(nonatomic,assign)NSInteger   downLoadImageCount;
@property(nonatomic,assign)NSInteger   count;//区分进入快速浏览的位置
@property(nonatomic,assign)int   currentPage;//当前页码
@property(nonatomic,copy)noPicsBlock noPicsBlock;
@property(nonatomic,copy)lastOnePhotoBlock lastOnePhotoBlock;
@property(nonatomic,copy)updataDataSourceBlock updataDataSourceBlock;
@property(nonatomic,copy)loadMoreBlock loadMoreBlock;

@property(nonatomic,assign)BOOL isNeedLoadMore;//首页进入后加载两次图片 第一次值加载一张
@property (nonatomic, weak) UIActivityIndicatorView  * indicatorView;
@property(nonatomic,assign)BOOL isLoadMoreData;//店铺进入快速浏览的时候加载更多数据后会通知这个类，用于移除加载提示器和回复视图原来位置

@property(nonatomic,assign)BOOL entryFromStore;//店铺内快速查看商品
@end
